package com.heima.behavior.controller.v1;

import com.heima.behavior.service.UnlikesBehaviorService;
import com.heima.model.behavior.dtos.UnLikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@Slf4j
@RequestMapping("/api/v1/un_likes_behavior")
public class UnlikesBehaviorController {

    private final UnlikesBehaviorService unlikesBehaviorService;

    @PostMapping
    public ResponseResult unlike(@RequestBody UnLikesBehaviorDto dto){
        return unlikesBehaviorService.unlike(dto);
    }
}
